home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3612 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  806 b 

  1. Path: icg.resnet.upenn.edu!konrad
  2. From: konrad@icg.resnet.upenn.edu (Konrad Hernblad)
  3. Newsgroups: comp.lang.c
  4. Subject: stopping cursor after inputting 2 characters
  5. Date: 30 Jan 1996 02:59:14 GMT
  6. Organization: Internet Consultants Group
  7. Message-ID: <4ek1i2$bur@netnews.upenn.edu>
  8. NNTP-Posting-Host: icg.resnet.upenn.edu
  9. X-Newsreader: TIN [version 1.2 PL2]
  10.  
  11. currently i'm using fgets to read in inputof length 2 from the user 
  12. (fgets allows me to limit the number of bytes accepted).  however, if the 
  13. user enters more than 2 characters, the input is still displayed on the 
  14. screen.  is there a way to limit the number of characters displayed as 
  15. well (i.e. beep or just stop the cursor when more than 2 characters are 
  16. typed) w/o using getche?
  17.  
  18. thanks in advance...
  19.  
  20. ---
  21. konrad hernblad
  22. konrad@future.co.jp
  23.